package com.example.script.admin.service;

import com.example.script.admin.enums.AdminResult;
import com.example.script.admin.enums.ChooseScriptResult;
import com.example.script.admin.model.dto.AdminUserDto;
import com.example.script.admin.model.dto.ChooseScriptDto;
import com.example.script.model.AdminUser;

import java.util.Map;

public interface AdminUserService {

    AdminUser getAdminUserByUsername (String AdminUsername);

    /**
     * 注册
     * @param adminUserDto
     * @return
     */
    AdminResult register(AdminUserDto adminUserDto);

    /**
     * 登录
     * @param username
     * @param password
     * @return
     */
    Map<String, String> login(String username, String password);

    /**
     * 修改店家个人信息
     * @param adminUserDto
     * @return
     */
    int updateAdminUser(AdminUserDto adminUserDto);

    /**
     * 店家确认预约
     * @param chooseScriptDto
     * @return
     */
    ChooseScriptResult chooseScript(ChooseScriptDto chooseScriptDto);

    /**
     * 玩家发出预约申请
     * @param chooseScriptDto
     * @return
     */
    ChooseScriptResult userAppointment(ChooseScriptDto chooseScriptDto);
}
